package com.baizhi.cmfz.controller;

import com.baizhi.cmfz.annotation.LogAnnotation;
import com.baizhi.cmfz.service.LogService;
import lombok.extern.java.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@RequestMapping("/log")
@Controller
public class LogController {
    @Autowired
    private LogService logService;

    @RequestMapping("/showPageLog")
    @ResponseBody
    @LogAnnotation(value = "查询日志信息" ,type = "select")
    public Map showPageLog(int page, int limit, String type){
        return logService.showPageLog(page,limit,type);
    }
}
